package com.iplant.ams.service.basicenum.dms.record;


import com.iplant.base.po.enums.BaseEnum;

/**
 * 故障类别
 *
 * @author YouWang·Peng
 * 2023-8-31 14:53:16
 */
public enum DMSItemRecordType implements BaseEnum {
    /**
     * 默认
     */
    Default(0, "默认"),

    /**
     * 点检
     */
    PointCheck(1, "维护"),
    /**
     * 维护
     */
    Maintenance(2, "点检"),
    /**
     * 维修
     */
    Repair(3, "维修");

    private int value;
    private String label;
    private String remark = "";

    DMSItemRecordType(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static DMSItemRecordType getEnumType(int val) {
        for (DMSItemRecordType type : DMSItemRecordType.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return Default;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
